/******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};

/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {

/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId])
/******/ 			return installedModules[moduleId].exports;

/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			exports: {},
/******/ 			id: moduleId,
/******/ 			loaded: false
/******/ 		};

/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);

/******/ 		// Flag the module as loaded
/******/ 		module.loaded = true;

/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}


/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;

/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;

/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";

/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(0);
/******/ })
/************************************************************************/
/******/ ({

/***/ 0:
/***/ function(module, exports, __webpack_require__) {

	/**
	 * Created by Administrator on 2017/3/14.
	 */
	var Result = __webpack_require__(28);
	var Root = React.createClass({displayName: "Root",
	    getDefaultProps:function(){
	        return{
	            result:PageDM.resultDate
	        }
	    },
	    componentDidMount: function(){
	        var _this = this;
	        UEventHub.emit("pageLoad","hello world!");
	    },
	    render: function () {
	        var PageDM = window.PageDM;

	        return (
	            React.createElement("div", null, 

	                React.createElement("div", {className: "container", ref: "container"}, 
	                    React.createElement("div", {ref: "step2"}, React.createElement(Result, {data: this.props.result, url: PageDM.URL.value}))
	                )

	            )
	        )
	    }
	});
	ReactDOM.render(React.createElement(Root, null), document.getElementById('giraffe'));

/***/ },

/***/ 28:
/***/ function(module, exports, __webpack_require__) {

	/**
	 * Created by DuHuiling on 2017/4/24.
	 */

	var Breadcrumb = __webpack_require__(29);

	var Result = React.createClass({displayName: "Result",
	    getDefaultProps:function(){
	        return{
	            data:{},
	            url:{
	                home:"",
	                invest:"",
	                account:""
	            }
	        }
	    },
	    getInitialState: function () {
	        return {
	            result:this.props.data.value,
	            investSum:0//预期收益
	        }
	    },
	    investSumChangeHandler: function (v) {
	        var v = Number(v);
	        var val = UMath.Earnings(v,this.state.result.Interest,this.state.result.Duration,PageDM.days.value);
	        val = UFormatter.formatMoney(val,2);
	        this.setState({
	            investSum:val
	        });
	    },
	    componentDidMount:function(){
	        var _this = this;
	        //console.log(_this.props.data)
	        //支付结果
	        UEventHub.on(_this.props.data.dmbind + UI_EVENT_CONST.SET_UDM_VALUE_EVENT, function(v){
	            //_this.updateResult(v);
	            _this.setState({
	                result:v
	            });
	            _this.investSumChangeHandler(v.OrderAmount);//初始预期收益
	        });
	    },
	    render: function () {
	        var _url = this.props.url;
	        var OrderAmount = UFormatter.formatMoney(this.state.result.OrderAmount,2);
	        return (
	            React.createElement("div", null, 
	                React.createElement(Breadcrumb, {	separator: ">"}, 
	                    React.createElement(Breadcrumb.Item, {href: _url.home}, "首页"), 
	                    React.createElement(Breadcrumb.Item, {href: _url.invest}, "我要投资"), 
	                    React.createElement(Breadcrumb.Item, null, "支付结果")
	                ), 

	                React.createElement("div", {className: "pay-result"}, 
	                    React.createElement("div", {className: "line"}), 
	                    this.state.result.orderType == -1 ? '' : this.state.result.orderType ?
	                        React.createElement("div", {className: "content"}, 
	                            React.createElement("h1", null, React.createElement("i", {className: "iconfont icon-success"}), " 订单提交成功，请稍后查看投资记录"), 
	                            React.createElement("div", {className: "detail"}, 
	                                React.createElement("h2", null, this.state.result.ProjectName), 
	                                React.createElement("ul", {className: "clearfix"}, 
	                                    React.createElement("li", {className: ""}, "投标金额"), 
	                                    React.createElement("li", null, "预期收益"), 
	                                    React.createElement("li", null, "还款时间"), 
	                                    React.createElement("li", null, OrderAmount + "元"), 
	                                    React.createElement("li", null, React.createElement("span", {className: "fc-main"}, React.createElement("strong", null, this.state.investSum)), " 元"), 
	                                    React.createElement("li", null, this.state.result.RepayBegin)
	                                )
	                            ), 
	                            React.createElement("div", {className: "button"}, 
	                                "您现在可以", React.createElement("a", {href: _url.account, className: "btn btn-confirm"}, "进入账户中心"), React.createElement("a", {href: _url.home, className: "btn btn-cancel"}, "返回首页")
	                            ), 
	                            React.createElement("div", {className: "fc-light tips"}, "如需查看更多投标信息，请进入您的账户中心查看！")
	                        ) :
	                        React.createElement("div", {className: "content"}, 
	                            React.createElement("h1", {className: "fc-main"}, React.createElement("i", {className: "iconfont icon-failure"}), " 抱歉，订单支付不成功"), 
	                            React.createElement("div", {className: "tips-failure"}, this.state.result.ErrorTips), 
	                            React.createElement("div", {className: "button"}, React.createElement("a", {href: "javascript:;", onClick: this.state.result.retry, className: "btn btn-cancel"}, "返回重试"))
	                        )
	                    
	                )
	            )
	        )
	    }
	});
	module.exports = Result;

/***/ },

/***/ 29:
/***/ function(module, exports) {

	/**
	 * Created by Administrator on 2017/3/23.
	 */

	var Breadcrumb = React.createClass({displayName: "Breadcrumb",
	    getDefaultProps: function(){
	        return{
	            separator:'>'   //分隔符
	        }
	    },
	    render: function(){
	        var that = this;
	        var len = this.props.children.length;
	        return (
	            React.createElement("div", {className: "ucs-breadcrumb"}, 
	                
	                    this.props.children.map(function (child,index) {
	                        if(index == len-1){
	                            return React.createElement("span", {className: "ucs-breadcrumb-link-last"}, child);
	                        }else{
	                            return React.createElement("span", null, child, React.createElement("span", {className: "ucs-breadcrumb-separator"}, that.props.separator));
	                        }
	                    })
	                
	            )
	        )
	    }
	});
	Breadcrumb.Item = React.createClass({displayName: "Breadcrumb.Item",
	    render: function () {
	        return (
	            this.props.href ?
	                React.createElement("a", {href: this.props.href}, this.props.children) :
	                React.createElement("span", null, this.props.children)
	        )
	    }
	});

	module.exports = Breadcrumb;

/***/ }

/******/ });